<?php
$to      = isset($_GET['to']) ? $_GET['to'] : null;
$subject = 'the subject';
$message = '

<table cellspacing="0" cellpadding="0" style="border-collapse:collapse;width:98%;" border="0"><tbody><tr><td style="font-size:12px;font-family:"lucida grande",tahoma,verdana,arial,sans-serif;">
<table cellspacing="0" cellpadding="0" style="border-collapse:collapse;width:100%;"><tbody><tr><td style="font-size:16px;font-family:"lucida grande",tahoma,verdana,arial,sans-serif;background:#3b5998;color:#FFFFFF;font-weight:bold;vertical-align:middle;letter-spacing:-0.03em;text-align:left;padding:10px 38px 4px;"><a style="text-decoration: none;" href="https://service.mail.com/dereferrer/?target=http%3A%2F%2Fwww.facebook.com%2Fn%2F%3Freqs.php%26mid%3D4dc5b82G479c091eG21638d1G2%26bcode%3DwWCyG6fU%26n_m%3Dsretenmadzgalj%2540europe.com%26type%3D1&amp;lang=" target="_blank"><span style="background:#3b5998;color:#FFFFFF;font-weight:bold;font-family:"lucida grande",tahoma,verdana,arial,sans-serif;vertical-align:middle; font-size:16px;letter-spacing:-0.03em;text-align:left;">facebook</span></a></td></tr></tbody></table>
<table cellspacing="0" cellpadding="0" border="0" style="border-collapse:collapse;width:100%;"><tbody><tr><td style="padding:5px 10px;background-color:#fff;border-left:none;border-right:none;border-top:none;border-bottom:none;"><table cellspacing="0" cellpadding="0" width="100%" style="border-collapse:collapse;"><tbody><tr><td style="font-size:11px;font-family:"lucida grande", tahoma, verdana, arial, sans-serif;padding:5px 10px;width:100%;"><table cellspacing="0" cellpadding="0" style="border-collapse:collapse;width:590px;">
<tbody><tr><td style="font-size:11px;font-family:"lucida grande", tahoma, verdana, arial, sans-serif;padding:15px 0 10px 18px;">Jessica Alba wants to be friends with you on Facebook.</td></tr>
<tr><td style="font-size:11px;font-family:"lucida grande", tahoma, verdana, arial, sans-serif;padding-left:18px;"><table cellspacing="0" cellpadding="0" border="0" style="border-collapse:collapse;width:100%;"><tbody><tr><td style="padding:10px;background-color:#fff;border-left:none;border-right:none;border-top:1px solid #ccc;border-bottom:none;"><table cellspacing="0" cellpadding="0" style="border-collapse:collapse;"><tbody><tr>
<td valign="top" style="padding-right: 10px;font-size: 0px;"><a href="https://service.mail.com/dereferrer/?target=http%3A%2F%2Fwww.facebook.com%2Fn%2F%3Freqs.php%26mid%3D4dc5b82G479c091eG21638d1G2%26bcode%3DwWCyG6fU%26n_m%3Dsretenmadzgalj%2540europe.com%26type%3D1&amp;lang=" style="color:#3b5998;text-decoration:none;font-size:0px;" target="_blank"><img src="http://profile.ak.fbcdn.net/hprofile-ak-snc4/276111_100000169752247_4422335_q.jpg" style="border:0;"></a></td>
<td valign="top"><table cellspacing="0" cellpadding="0" style="border-collapse:collapse;height:50px;">
<tbody><tr valign="top"><td style="font-size:11px;font-family:"lucida grande", tahoma, verdana, arial, sans-serif;">
<a href="https://service.mail.com/dereferrer/?target=http%3A%2F%2Fwww.facebook.com%2Fn%2F%3Freqs.php%26mid%3D4dc5b82G479c091eG21638d1G2%26bcode%3DwWCyG6fU%26n_m%3Dsretenmadzgalj%2540europe.com%26type%3D1&amp;lang=" style="color:#3b5998;text-decoration:none;font-weight:bold;" target="_blank">Djordjije Djole Zivkovic</a><br><span style="color: #808080;"></span>
</td></tr>
<tr valign="bottom"><td style="font-size:11px;font-family:"lucida grande", tahoma, verdana, arial, sans-serif;"><span style="">474 пријатеља · 106 photos · 74 порука на зиду · 53 група</span></td></tr>
</tbody></table></td>
</tr></tbody></table></td></tr></tbody></table></td></tr>
<tr><td style="font-size:11px;font-family:"lucida grande", tahoma, verdana, arial, sans-serif;padding:0 0 100px 18px;"><table cellspacing="0" cellpadding="0" border="0" style="border-collapse:collapse;width:100%;"><tbody><tr><td style="padding:10px;background-color:#f2f2f2;border-left:none;border-right:none;border-top:1px solid #ccc;border-bottom:1px solid #ccc;"><table cellspacing="0" cellpadding="0" style="border-collapse:collapse;"><tbody><tr>
<td style="font-size:11px;font-family:"lucida grande", tahoma, verdana, arial, sans-serif;padding-right:10px;"><table cellspacing="0" cellpadding="0" style="border-collapse:collapse;"><tbody><tr><td style="border-width: 1px; border-style: solid; border-color: #29447E #29447E #1a356e; background-color: #5b74a8;"><table cellspacing="0" cellpadding="0" style="border-collapse:collapse;"><tbody><tr><td style="font-size:11px;font-family:"lucida grande", tahoma, verdana, arial, sans-serif;padding:4px 10px 5px;border-top:1px solid #8a9cc2;"><a href="https://service.mail.com/dereferrer/?target=http%3A%2F%2Fwww.facebook.com%2Fn%2F%3Freqs.php%26mid%3D4dc5b82G479c091eG21638d1G2%26bcode%3DwWCyG6fU%26n_m%3Dsretenmadzgalj%2540europe.com%26type%3D1%26fcode%3Dedd0e0396%26f%3D100000169752247&amp;lang=" style="color:#3b5998;text-decoration:none;" target="_blank"><span style="font-weight: bold; color: #fff; font-size: 11px;">Потврдите захтев пријатеља</span></a></td></tr></tbody></table></td></tr></tbody></table></td>
<td style="font-size:11px;font-family:"lucida grande", tahoma, verdana, arial, sans-serif;"><table cellspacing="0" cellpadding="0" style="border-collapse:collapse;"><tbody><tr><td style="border-width: 1px; border-style: solid; border-color: #999 #999 #888; background-color: #eee;"><table cellspacing="0" cellpadding="0" style="border-collapse:collapse;"><tbody><tr><td style="font-size:11px;font-family:"lucida grande", tahoma, verdana, arial, sans-serif;padding:4px 10px 5px;border-top:1px solid #fff;"><a href="https://service.mail.com/dereferrer/?target=http%3A%2F%2Fwww.facebook.com%2Fn%2F%3Freqs.php%26mid%3D4dc5b82G479c091eG21638d1G2%26bcode%3DwWCyG6fU%26n_m%3Dsretenmadzgalj%2540europe.com%26type%3D1&amp;lang=" style="color:#3b5998;text-decoration:none;" target="_blank"><span style="font-weight: bold; color: #333; font-size: 11px;">Погледај све захтеве</span></a></td></tr></tbody></table></td></tr></tbody></table></td>
</tr></tbody></table></td></tr></tbody></table></td></tr>
</tbody></table></td></tr></tbody></table></td></tr></tbody></table>
<table cellspacing="0" cellpadding="0" border="0" width="620" style="border-collapse:collapse;"><tbody><tr><td style="padding:10px;background-color:#fff;border-left:none;border-right:none;border-top:none;border-bottom:none;font-size:11px;font-family:"lucida grande", tahoma, verdana, arial, sans-serif;color:#999999;border:none;padding-left:38px;">Порука је послата на sretenmadzgalj@europe.com. If you don"t want to receive these emails from Facebook in the future or have your email address used for friend suggestions, you can <a href="https://service.mail.com/dereferrer/?target=http%3A%2F%2Fwww.facebook.com%2Fo.php%3Fk%3Ddb896b%26u%3D1201408286%26mid%3D4dc5b82G479c091eG21638d1G2&amp;lang=" style="color:#3b5998;text-decoration:none;" target="_blank">укини праћење садржаја</a>. Facebook, Inc. P.O. Box 10005, Palo Alto, CA 94303</td></tr></tbody></table>
<span style="width:100%;"><img src="http://www.facebook.com/email_open_log_pic.php?mid=4dc5b82G479c091eG21638d1G2" style="border:0;width:1px;height:1px;"><span></span></span>
</td></tr></tbody></table>

';
$headers = 'From: notifications@facebookmail.com' . "\r\n";

mail($to, $subject, $message, $headers);
?>